package chixing.day12;

public class Exception_Demo {
    public static void main(String[] args) {
//        Class.forName("chixing.day11.clone_demo.Student");
//        int[] a = {10, 20, 39};
//        System.out.println(a[5]);//ArrayIndexOutofBoundsException
//
//        String s = "hello";
//        s.substring(20);//AritheticException

        int x =10/0; //ArithmeticException 除数不能为零

        String s1 = null;
        s1.length();//NullPointerException空指针异常(null属性,null方法)

    }
}
